home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / dsaniset / frmdemo.fr_ < prev    next >
Text File  |  1999-04-30  |  6KB  |  187 lines

  1. VERSION 5.00
  2. Object = "{950B442B-E530-11D2-87A3-8A66BD643D34}#2.16#0"; "DSAniSet.ocx"
  3. Begin VB.Form FrmDemo 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Demonstration of the Animated Cursor Controls..."
  6.    ClientHeight    =   2985
  7.    ClientLeft      =   45
  8.    ClientTop       =   330
  9.    ClientWidth     =   5610
  10.    Icon            =   "FrmDemo.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   2985
  15.    ScaleWidth      =   5610
  16.    ShowInTaskbar   =   0   'False
  17.    StartUpPosition =   3  'Windows Default
  18.    Begin DSAniSet.DSAniCursor Master 
  19.       Left            =   4440
  20.       Top             =   2280
  21.       _ExtentX        =   953
  22.       _ExtentY        =   953
  23.       Cursors         =   "FrmDemo.frx":0442
  24.    End
  25.    Begin DSAniSet.DSAniImage Cursors 
  26.       Height          =   480
  27.       Index           =   0
  28.       Left            =   5040
  29.       Top             =   1200
  30.       Width           =   480
  31.       _ExtentX        =   847
  32.       _ExtentY        =   847
  33.       BackColor       =   12632256
  34.       OLEDropMode     =   1
  35.       Cursor          =   "FrmDemo.frx":5BBB
  36.       CurLength       =   7878
  37.    End
  38.    Begin DSAniSet.DSAniImage AniImage 
  39.       Height          =   480
  40.       Left            =   120
  41.       Top             =   960
  42.       Width           =   480
  43.       _ExtentX        =   847
  44.       _ExtentY        =   847
  45.       BackColor       =   12632256
  46.       OLEDropMode     =   1
  47.       Cursor          =   "FrmDemo.frx":9967
  48.       CurLength       =   8744
  49.    End
  50.    Begin VB.CommandButton Buttons 
  51.       Caption         =   "Button 3"
  52.       Height          =   495
  53.       Index           =   2
  54.       Left            =   2880
  55.       TabIndex        =   6
  56.       Top             =   2400
  57.       Width           =   1455
  58.    End
  59.    Begin VB.CommandButton Buttons 
  60.       Caption         =   "Button 2"
  61.       Height          =   495
  62.       Index           =   1
  63.       Left            =   2880
  64.       TabIndex        =   5
  65.       Top             =   1800
  66.       Width           =   1455
  67.    End
  68.    Begin VB.CommandButton Buttons 
  69.       Caption         =   "Button 1"
  70.       Height          =   495
  71.       Index           =   0
  72.       Left            =   2880
  73.       TabIndex        =   4
  74.       Top             =   1200
  75.       Width           =   1455
  76.    End
  77.    Begin DSAniSet.DSAniImage Cursors 
  78.       Height          =   480
  79.       Index           =   1
  80.       Left            =   5040
  81.       Top             =   1800
  82.       Width           =   480
  83.       _ExtentX        =   847
  84.       _ExtentY        =   847
  85.       BackColor       =   12632256
  86.       OLEDropMode     =   1
  87.       Cursor          =   "FrmDemo.frx":DDD7
  88.       CurLength       =   4894
  89.    End
  90.    Begin DSAniSet.DSAniImage Cursors 
  91.       Height          =   480
  92.       Index           =   2
  93.       Left            =   5040
  94.       Top             =   2400
  95.       Width           =   480
  96.       _ExtentX        =   847
  97.       _ExtentY        =   847
  98.       BackColor       =   12632256
  99.       OLEDropMode     =   1
  100.       Cursor          =   "FrmDemo.frx":10433
  101.       CurLength       =   9482
  102.    End
  103.    Begin VB.Line Lines 
  104.       Index           =   0
  105.       X1              =   2760
  106.       X2              =   2760
  107.       Y1              =   120
  108.       Y2              =   2880
  109.    End
  110.    Begin VB.Label Labels 
  111.       AutoSize        =   -1  'True
  112.       Caption         =   "Animated Cursor Control. Drag cursors onto the three image to change the cursor that is used for the buttons."
  113.       Height          =   855
  114.       Index           =   1
  115.       Left            =   2880
  116.       TabIndex        =   7
  117.       Top             =   120
  118.       Width           =   2655
  119.       WordWrap        =   -1  'True
  120.    End
  121.    Begin VB.Label Data 
  122.       AutoSize        =   -1  'True
  123.       Caption         =   "5916ms"
  124.       Height          =   195
  125.       Index           =   2
  126.       Left            =   720
  127.       TabIndex        =   3
  128.       Top             =   1440
  129.       Width           =   555
  130.    End
  131.    Begin VB.Label Data 
  132.       AutoSize        =   -1  'True
  133.       Caption         =   "Lynne"
  134.       Height          =   195
  135.       Index           =   1
  136.       Left            =   720
  137.       TabIndex        =   2
  138.       Top             =   1200
  139.       Width           =   435
  140.    End
  141.    Begin VB.Label Data 
  142.       AutoSize        =   -1  'True
  143.       Caption         =   "Who's Out There"
  144.       Height          =   195
  145.       Index           =   0
  146.       Left            =   720
  147.       TabIndex        =   1
  148.       Top             =   960
  149.       Width           =   1215
  150.    End
  151.    Begin VB.Label Labels 
  152.       AutoSize        =   -1  'True
  153.       Caption         =   "Animated Cursor Image Control. See what happens when you drag a cursor from Explorer onto the image below!"
  154.       Height          =   780
  155.       Index           =   0
  156.       Left            =   120
  157.       TabIndex        =   0
  158.       Top             =   120
  159.       Width           =   2535
  160.       WordWrap        =   -1  'True
  161.    End
  162. End
  163. Attribute VB_Name = "FrmDemo"
  164. Attribute VB_GlobalNameSpace = False
  165. Attribute VB_Creatable = False
  166. Attribute VB_PredeclaredId = True
  167. Attribute VB_Exposed = False
  168. Option Explicit
  169.  
  170. Private Sub AniImage_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
  171.     FrmDemo.AniImage.Animation = Data.Files(1)
  172.     FrmDemo.Data(0).Caption = FrmDemo.AniImage.CursorName
  173.     FrmDemo.Data(1).Caption = FrmDemo.AniImage.Artist
  174.     FrmDemo.Data(2).Caption = FrmDemo.AniImage.Time & "ms"
  175. End Sub
  176.  
  177. Private Sub Cursors_OLEDragDrop(Index As Integer, Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
  178.     FrmDemo.Cursors(Index).Animation = Data.Files(1)
  179.     If FrmDemo.Cursors(Index).LastError <> NoError Then
  180.         FrmDemo.Master.Cursors.RemoveControl "Buttons(" & Index & ")"
  181.     Else
  182.         FrmDemo.Master.Cursors.AddCursor "Cursor " & Index + 1, Data.Files(1)
  183.         FrmDemo.Master.Cursors.SetControl "Buttons(" & Index & ")", "Cursor " & Index + 1
  184.     End If
  185. End Sub
  186.  
  187.